package com.yc;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

import javax.servlet.Servlet;

@AutoConfiguration
@ComponentScan("com.yc")
@ConditionalOnClass(Servlet.class)
// 判断是否有执行的配置项
@ConditionalOnProperty(prefix = "demo", name = "enable")
public class DemoStarterConfig {

}
